package com.ustc.hewei.nettyrpc2_0.netty.server.net;

import com.ustc.hewei.nettyrpc2_0.netty.server.handler.RequestHandler;
import lombok.Data;

/**
* @description: 服务端的抽象类
* @author hewei
* @date 2022/7/27 19:14
* @version 1.0
*/

@Data
public abstract class RpcServer {
    // 服务端监听的端口
    public int port;

    public RpcServer(int port) {
        this.port = port;
    }

    public abstract void start();

    public abstract void stop();
}
